package com.dubito.pattern.创建型模式.工厂模式.简单工厂;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class FactoryMethodDemo {

    public static void main(String[] args) {

        Creator creator = new ConcreteCreator();
        Product product = creator.factory(ConcreteProduct.class);
        product.method1();
        product.method2();
    }
}
